Skip to content

Conversation

@r-ushil-gsa
Copy link

Currently, there's no way to set default platforms in pixi.toml files. This changes allows a user to include a default-platforms, much like the existing default-channels - which is in the same Pixi directive. This is especially useful so that pixi init works in a multi-platform environment out of the box.

I've added the snake case alias for backwards compatibility, and added a unit test.

Let me know if there's anything I've missed.

@lucascolley lucascolley added enhancement New features configuration Issue related to configuration of workspace or global behavior area:init Related to pixi init labels Sep 11, 2025
@lucascolley
Copy link
Collaborator

Thanks @r-ushil-gsa ! Could you make a corresponding issue? That will just help us track this better

@r-ushil-gsa
Copy link
Author

Sure, done.

Fixes #4572

@lucascolley lucascolley linked an issue Sep 11, 2025 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:init Related to pixi init configuration Issue related to configuration of workspace or global behavior enhancement New features

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(init): config for default platforms

2 participants